<?php
namespace app\admin\controller;
use app\admin\controller\Base;
class Salesman extends Base
{
    function cache(){
        $Salesman = model('Salesman');
        $list=$Salesman->where('status',1)->column('id,realname');
        cache('Salesman',$list);
        $this->success('缓存成功');
    }
    function getlist(){
        $Salesman  = model('Salesman');
        $list = $Salesman->getList();
        echo json_encode($list['list']);
        exit;
        P($list['list']);
    }
}
